#! /bin/bash
user=root
passwd=123456


echo "数据库授权mlsql用户"

mysql -u$user -p$passwd -e 'create user mlsql@localhost identified by 'mlsql';'
mysql -u$user -p$passwd -e 'grant all privileges on mlsql_cluster.* to mlsql@localhost;'
mysql -u$user -p$passwd -e 'grant all privileges on mlsql_console.* to mlsql@localhost;'
